package com.stylefeng.guns.core.shiro;

import org.apache.shiro.authc.RememberMeAuthenticationToken;

public class WxCodeAuthcToken implements RememberMeAuthenticationToken {

    private String code;

    public WxCodeAuthcToken(String code) {
        this.code = code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 用户名
     */
    @Override
    public Object getPrincipal() {
        return this.code;
    }

    @Override
    public Object getCredentials() {
        return 1;
    }

    @Override
    public boolean isRememberMe() {
        return true;
    }
}
